<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>08媒体查询引入资源</title>
    <!-- 引入媒体查询资源，从小到大 -->
    <link rel="stylesheet" href="./style320.css" media="screen and (max-width:639px)">
    <link rel="stylesheet" href="./style640.css" media="screen and (min-width:640px)">
    <style>
        /* 当屏幕尺寸大于等于640px，让div一行显示2个，小于640一行显示一个div */
    </style>
</head>

<body>
    <div>1</div>
    <div>2</div>
</body>

</html>